﻿<%@ Page Language="C#" AutoEventWireup="true" 
    CodeBehind="PasswordRecoveryWindow.aspx.cs" 
    Inherits="Medianamik.UI.Web.PasswordRecoveryWindow" 
    MasterPageFile="~/Medianamik/MasterPages/MedianamikModalWindow.Master" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder" />
<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
	<asp:MultiView runat="server" ID="MultiView" ActiveViewIndex="0">
		<asp:View runat="server" ID="ViewPasswordRecovery">
			<fieldset>
				<asp:PasswordRecovery runat="server" ID="PasswordRecovery" 
				OnSendMailError="PasswordRecovery_SendMailError" 
				OnUserLookupError="PasswordRecovery_UserLookupError"
				 OnSendingMail="PasswordRecovery_SendingMail" 
				UserNameInstructionText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameInstructionText %>" 
				UserNameFailureText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameFailureText %>" 
				UserNameLabelText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameLabel %>" 
				UserNameRequiredErrorMessage="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameRequiredErrorMessage %>" 
				UserNameTitleText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameTitleText %>" 
				SuccessText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_SuccessText %>" 
				GeneralFailureText="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_GeneralFailureText %>" 
				MailDefinition-Subject="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_MailDefinition-Subject %>" 
				SubmitButtonText="<%$Resources: Medianamik_Global, SubmitButton %>" >
					<UserNameTemplate>
						<p><asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Text="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameLabel %>" /><asp:TextBox ID="UserName" runat="server" CssClass="TxtBox" style="width:225px;"></asp:TextBox>
						<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" 
						ToolTip="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_UserNameRequiredTooltip %>" ValidationGroup="PasswordRecovery1">&nbsp;*</asp:RequiredFieldValidator></p>
						<p><asp:Button ID="SubmitButton" runat="server" CssClass="Btn" CommandName="Submit" Text="<%$Resources: Medianamik_Global, SubmitButton %>" ValidationGroup="PasswordRecovery1" /></p>
						<asp:Label ID="FailureText" runat="server" EnableViewState="False" CssClass="TxtErreur IcoErreur" style="display:none;" />
					</UserNameTemplate>
					<SuccessTemplate>
						<p><asp:Literal runat="server" Text="<%$Resources: Medianamik_ModalWindows, PasswordRecovery_SuccessText %>" /></p>
					</SuccessTemplate>
				</asp:PasswordRecovery>
			</fieldset>
		</asp:View>
		<asp:View runat="server" ID="ViewSendMailError">
			<asp:Label runat="server" Text="<%$Resources: Medianamik_ModalWindows, SendMailErrorText %>" CssClass="TxtErreur IcoErreur" />
		</asp:View>
	</asp:MultiView>
</asp:Content>
